package com.matrix.async.bean;

import com.matrix.core.anotations.Extend;
import com.matrix.core.pojo.EntityDTO;

public class AsyncConfigurationBean extends EntityDTO {
	@Extend
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	private String id;
	/**
	 * 处理类全路径
	 */
	private String handler;
	/**
	 * 任务名称
	 */
	private String taskType;
	/**
	 * 是否启用
	 */
	private String beanUse;
	/**
	 * 批次大小
	 */
	private int batchSize;
	/**
	 * 延时启动
	 */
	private int startupDelay;
	/**
	 * 是否添加
	 */
	private String appFactoryBean;
	
	
	public AsyncConfigurationBean() {
		super();
	}
	
	public AsyncConfigurationBean(String id, String handler, String taskType,
			String beanUse, int batchSize, int startupDelay,
			String appFactoryBean) {
		super();
		this.id = id;
		this.handler = handler;
		this.taskType = taskType;
		this.beanUse = beanUse;
		this.batchSize = batchSize;
		this.startupDelay = startupDelay;
		this.appFactoryBean = appFactoryBean;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}
	
	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public String getBeanUse() {
		return beanUse;
	}

	public void setBeanUse(String beanUse) {
		this.beanUse = beanUse;
	}

	public int getBatchSize() {
		return batchSize;
	}

	public void setBatchSize(int batchSize) {
		this.batchSize = batchSize;
	}

	public int getStartupDelay() {
		return startupDelay;
	}

	public void setStartupDelay(int startupDelay) {
		this.startupDelay = startupDelay;
	}
	
	public String getAppFactoryBean() {
		return appFactoryBean;
	}

	public void setAppFactoryBean(String appFactoryBean) {
		this.appFactoryBean = appFactoryBean;
	}

	@Override
	public String toString() {
		return "AsyncConfigurationBean [id=" + id + ", handler=" + handler
				+ ", taskType=" + taskType + ", beanUse=" + beanUse
				+ ", batchSize=" + batchSize + ", startupDelay=" + startupDelay
				+ ", appFactoryBean=" + appFactoryBean + "]";
	}
}